

<!DOCTYPE html>
<html lang="zh-CN" data-default-color-scheme=auto>



<head>
  <meta charset="UTF-8">
  
  <link href="https://fonts.proxy.ustclug.org/css2?family=Noto+Serif+SC&display=swap" rel="stylesheet">

  <link rel="apple-touch-icon" sizes="76x76" href="/yyds/img/fluid.png">
  <link rel="icon" href="/yyds/img/fluid.png">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=5.0, shrink-to-fit=no">
  <meta http-equiv="x-ua-compatible" content="ie=edge">
  
  <meta name="theme-color" content="#2f4154">
  <meta name="author" content="弶森">
  <meta name="keywords" content="旅游  郴州旅游  郴州  郴州旅行  攻略  旅游攻略">
  
    <meta name="description" content="居中 text here    text here    text here      表格    title1 title2 title3    code text bold    https:&#x2F;&#x2F;markdown.com.cn&#x2F;extended-syntax&#x2F;tables.html    1使用 &lt;kbd&gt;Ctrl&lt;&#x2F;kbd&gt;+&lt;kbd&gt;Alt&lt;&#x2F;kb">
<meta property="og:type" content="article">
<meta property="og:title" content="20240430">
<meta property="og:url" content="https://jiefav.gitee.io/yyds/2024/04/24/20240430/index.html">
<meta property="og:site_name" content="游颜色">
<meta property="og:description" content="居中 text here    text here    text here      表格    title1 title2 title3    code text bold    https:&#x2F;&#x2F;markdown.com.cn&#x2F;extended-syntax&#x2F;tables.html    1使用 &lt;kbd&gt;Ctrl&lt;&#x2F;kbd&gt;+&lt;kbd&gt;Alt&lt;&#x2F;kb">
<meta property="og:locale" content="zh_CN">
<meta property="og:image" content="https://raw.githubusercontent.com/maxma128/imagehosting/master/img/C%7BX1EKBO1SFA7QFSH7LHTYQ.png">
<meta property="og:image" content="https://jiefav.gitee.io/yyds/%E5%9B%BE%E7%89%87%E5%9C%B0%E5%9D%80">
<meta property="og:image" content="https://jiefav.gitee.io/yyds/%E5%9B%BE%E7%89%87%E5%9C%B0%E5%9D%80">
<meta property="og:image" content="https://jiefav.gitee.io/yyds/%E5%9B%BE%E7%89%87%E5%9C%B0%E5%9D%80">
<meta property="og:image" content="https://jiefav.gitee.io/yyds/%E5%9B%BE%E7%89%87%E9%93%BE%E6%8E%A5#pic_center">
<meta property="og:image" content="https://jiefav.gitee.io/yyds/%E5%9B%BE%E7%89%87%E9%93%BE%E6%8E%A5#pic_center">
<meta property="og:image" content="https://jiefav.gitee.io/yyds/%E5%9B%BE%E7%89%87%E9%93%BE%E6%8E%A5#pic_left">
<meta property="og:image" content="https://jiefav.gitee.io/yyds/%E5%9B%BE%E7%89%87%E9%93%BE%E6%8E%A5#pic_right">
<meta property="og:image" content="https://jiefav.gitee.io/yyds/2024/04/24/20240430/%E5%9B%BE%E7%89%87%E9%93%BE%E6%8E%A5">
<meta property="og:image" content="https://jiefav.gitee.io/yyds/2024/04/24/20240430/%E5%9B%BE%E7%89%87%E9%93%BE%E6%8E%A5">
<meta property="og:image" content="https://jiefav.gitee.io/yyds/2024/04/24/20240430/%E5%9B%BE%E7%89%87%E9%93%BE%E6%8E%A5">
<meta property="og:image" content="https://jiefav.gitee.io/yyds/2024/04/24/20240430/%E5%9B%BE%E7%89%87%E9%93%BE%E6%8E%A5">
<meta property="og:image" content="https://jiefav.gitee.io/yyds/2024/04/24/20240430/%E5%9B%BE%E7%89%87%E9%93%BE%E6%8E%A5">
<meta property="og:image" content="https://jiefav.gitee.io/yyds/2024/04/24/20240430/%E5%9B%BE%E7%89%87%E9%93%BE%E6%8E%A5">
<meta property="og:image" content="https://jiefav.gitee.io/yyds/2024/04/24/20240430/%E5%9B%BE%E7%89%87%E9%93%BE%E6%8E%A5">
<meta property="og:image" content="https://jiefav.gitee.io/yyds/2024/04/24/20240430/%E5%9B%BE%E7%89%87%E9%93%BE%E6%8E%A5">
<meta property="og:image" content="https://jiefav.gitee.io/yyds/2024/04/24/20240430/%E5%9B%BE%E7%89%87%E9%93%BE%E6%8E%A5">
<meta property="og:image" content="https://jiefav.gitee.io/yyds/2024/04/24/20240430/%E5%9B%BE%E7%89%87%E9%93%BE%E6%8E%A5">
<meta property="og:image" content="https://jiefav.gitee.io/yyds/2024/04/24/20240430/%E5%9B%BE%E7%89%87%E9%93%BE%E6%8E%A5">
<meta property="og:image" content="https://jiefav.gitee.io/yyds/2024/04/24/20240430/%E5%9B%BE%E7%89%87%E9%93%BE%E6%8E%A51">
<meta property="og:image" content="https://jiefav.gitee.io/yyds/2024/04/24/20240430/%E5%9B%BE%E7%89%87%E9%93%BE%E6%8E%A52">
<meta property="og:image" content="https://jiefav.gitee.io/yyds/2024/04/24/20240430/%E5%9B%BE%E7%89%87%E9%93%BE%E6%8E%A53">
<meta property="og:image" content="https://jiefav.gitee.io/yyds/2024/04/24/20240430/%E5%9B%BE%E7%89%87%E9%93%BE%E6%8E%A54">
<meta property="og:image" content="https://jiefav.gitee.io/yyds/2024/04/24/20240430/%E5%9B%BE%E7%89%87%E9%93%BE%E6%8E%A5">
<meta property="og:image" content="https://jiefav.gitee.io/yyds/2024/04/24/20240430/%E5%9B%BE%E7%89%87%E9%93%BE%E6%8E%A5">
<meta property="og:image" content="https://img-blog.csdnimg.cn/direct/7f0ff407ecc846fca0067cbda23236bc.png">
<meta property="og:image" content="https://img-blog.csdnimg.cn/direct/7f0ff407ecc846fca0067cbda23236bc.png">
<meta property="og:image" content="https://img-blog.csdnimg.cn/direct/7f0ff407ecc846fca0067cbda23236bc.png">
<meta property="og:image" content="https://img-blog.csdnimg.cn/direct/7f0ff407ecc846fca0067cbda23236bc.png">
<meta property="og:image" content="https://img-blog.csdnimg.cn/img_convert/9f0a5f6a82cbc594408f7b345284bce1.png">
<meta property="og:image" content="https://img2023.cnblogs.com/blog/3258107/202311/3258107-20231107210109373-1183604037.jpg">
<meta property="og:image" content="https://img2023.cnblogs.com/blog/3258107/202311/3258107-20231107210109373-1183604037.jpg">
<meta property="og:image" content="https://img2023.cnblogs.com/blog/3258107/202311/3258107-20231107210109373-1183604037.jpg">
<meta property="article:published_time" content="2024-04-24T09:57:41.000Z">
<meta property="article:modified_time" content="2024-04-28T01:56:03.679Z">
<meta property="article:author" content="jiefav">
<meta property="article:tag" content="Markdown">
<meta property="article:tag" content="Typora">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:image" content="https://raw.githubusercontent.com/maxma128/imagehosting/master/img/C%7BX1EKBO1SFA7QFSH7LHTYQ.png">
  
  
  
  <title>20240430 - 游颜色</title>

  <link  rel="stylesheet" href="https://lib.baomitu.com/twitter-bootstrap/4.6.1/css/bootstrap.min.css" />



  <link  rel="stylesheet" href="https://lib.baomitu.com/github-markdown-css/4.0.0/github-markdown.min.css" />

  <link  rel="stylesheet" href="https://lib.baomitu.com/hint.css/2.7.0/hint.min.css" />

  <link  rel="stylesheet" href="https://lib.baomitu.com/fancybox/3.5.7/jquery.fancybox.min.css" />



<!-- 主题依赖的图标库，不要自行修改 -->
<!-- Do not modify the link that theme dependent icons -->

<link rel="stylesheet" href="//at.alicdn.com/t/font_1749284_hj8rtnfg7um.css">



<link rel="stylesheet" href="//at.alicdn.com/t/font_1736178_lbnruvf0jn.css">


<link  rel="stylesheet" href="/yyds/css/main.css" />


  <link id="highlight-css" rel="stylesheet" href="/yyds/css/highlight.css" />
  
    <link id="highlight-css-dark" rel="stylesheet" href="/yyds/css/highlight-dark.css" />
  




  <script id="fluid-configs">
    var Fluid = window.Fluid || {};
    Fluid.ctx = Object.assign({}, Fluid.ctx)
    var CONFIG = {"hostname":"jiefav.gitee.io","root":"/yyds/","version":"1.9.7","typing":{"enable":true,"typeSpeed":70,"cursorChar":"_","loop":true,"scope":[]},"anchorjs":{"enable":true,"element":"h1,h2,h3,h4,h5,h6","placement":"left","visible":"hover","icon":""},"progressbar":{"enable":true,"height_px":3,"color":"#29d","options":{"showSpinner":false,"trickleSpeed":100}},"code_language":{"enable":true,"default":"TEXT"},"copy_btn":true,"image_caption":{"enable":true},"image_zoom":{"enable":true,"img_url_replace":["",""]},"toc":{"enable":true,"placement":"right","headingSelector":"h1,h2,h3,h4,h5,h6","collapseDepth":0},"lazyload":{"enable":true,"loading_img":"/img/loading.gif","onlypost":false,"offset_factor":2},"web_analytics":{"enable":false,"follow_dnt":true,"baidu":null,"google":{"measurement_id":null},"tencent":{"sid":null,"cid":null},"woyaola":null,"cnzz":null,"leancloud":{"app_id":null,"app_key":null,"server_url":null,"path":"window.location.pathname","ignore_local":false}},"search_path":"/yyds/local-search.xml","include_content_in_search":true};

    if (CONFIG.web_analytics.follow_dnt) {
      var dntVal = navigator.doNotTrack || window.doNotTrack || navigator.msDoNotTrack;
      Fluid.ctx.dnt = dntVal && (dntVal.startsWith('1') || dntVal.startsWith('yes') || dntVal.startsWith('on'));
    }
  </script>
  <script  src="/yyds/js/utils.js" ></script>
  <script  src="/yyds/js/color-schema.js" ></script>
  


  
<meta name="generator" content="Hexo 7.1.1"></head>


<body>
  

  <header>
    

<div class="header-inner" style="height: 70vh;">
  <nav id="navbar" class="navbar fixed-top  navbar-expand-lg navbar-dark scrolling-navbar">
  <div class="container">
    <a class="navbar-brand" href="/yyds/">
      <strong>游颜色</strong>
    </a>

    <button id="navbar-toggler-btn" class="navbar-toggler" type="button" data-toggle="collapse"
            data-target="#navbarSupportedContent"
            aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
      <div class="animated-icon"><span></span><span></span><span></span></div>
    </button>

    <!-- Collapsible content -->
    <div class="collapse navbar-collapse" id="navbarSupportedContent">
      <ul class="navbar-nav ml-auto text-center">
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/yyds/" target="_self">
                <i class="iconfont icon-home-fill"></i>
                <span>首页</span>
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/yyds/archives/" target="_self">
                <i class="iconfont icon-archive-fill"></i>
                <span>归档</span>
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/yyds/categories/" target="_self">
                <i class="iconfont icon-category-fill"></i>
                <span>分类</span>
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/yyds/tags/" target="_self">
                <i class="iconfont icon-tags-fill"></i>
                <span>标签</span>
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/yyds/about/" target="_self">
                <i class="iconfont icon-user-fill"></i>
                <span>关于</span>
              </a>
            </li>
          
        
        
          <li class="nav-item" id="search-btn">
            <a class="nav-link" target="_self" href="javascript:;" data-toggle="modal" data-target="#modalSearch" aria-label="Search">
              <i class="iconfont icon-search"></i>
            </a>
          </li>
          
        
        
          <li class="nav-item" id="color-toggle-btn">
            <a class="nav-link" target="_self" href="javascript:;" aria-label="Color Toggle">
              <i class="iconfont icon-dark" id="color-toggle-icon"></i>
            </a>
          </li>
        
      </ul>
    </div>
  </div>
</nav>

  

<div id="banner" class="banner" parallax=true
     style="background: url('/yyds/img/default.png') no-repeat center center; background-size: cover;">
  <div class="full-bg-img">
    <div class="mask flex-center" style="background-color: rgba(0, 0, 0, 0.3)">
      <div class="banner-text text-center fade-in-up">
        <div class="h2">
          
            <span id="subtitle" data-typed-text="20240430"></span>
          
        </div>

        
          
  <div class="mt-3">
    
    
      <span class="post-meta">
        <i class="iconfont icon-date-fill" aria-hidden="true"></i>
        <time datetime="2024-04-24 17:57" pubdate>
          2024年4月24日 下午
        </time>
      </span>
    
  </div>

  <div class="mt-1">
    
      <span class="post-meta mr-2">
        <i class="iconfont icon-chart"></i>
        
          5.8k 字
        
      </span>
    

    
      <span class="post-meta mr-2">
        <i class="iconfont icon-clock-fill"></i>
        
        
        
          48 分钟
        
      </span>
    

    
    
  </div>


        
      </div>

      
    </div>
  </div>
</div>

</div>

  </header>

  <main>
    
      

<div class="container-fluid nopadding-x">
  <div class="row nomargin-x">
    <div class="side-col d-none d-lg-block col-lg-2">
      

    </div>

    <div class="col-lg-8 nopadding-x-md">
      <div class="container nopadding-x-md" id="board-ctn">
        <div id="board">
          <article class="post-content mx-auto">
            <h1 id="seo-header">20240430</h1>
            
            
              <div class="markdown-body">
                
                <p>居中</p>
<center>text here</center>



<p align="right">text here</p>



<p align="left">text here</p>





<p>表格</p>
<table>
<thead>
<tr>
<th align="left">title1</th>
<th align="center">title2</th>
<th align="right">title3</th>
</tr>
</thead>
<tbody><tr>
<td align="left"><code>code</code></td>
<td align="center">text</td>
<td align="right"><strong>bold</strong></td>
</tr>
<tr>
<td align="left"></td>
<td align="center"><a target="_blank" rel="noopener" href="https://markdown.com.cn/extended-syntax/tables.html">https://markdown.com.cn/extended-syntax/tables.html</a></td>
<td align="right"></td>
</tr>
</tbody></table>
<figure class="highlight text"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs text">使用 &lt;kbd&gt;Ctrl&lt;/kbd&gt;+&lt;kbd&gt;Alt&lt;/kbd&gt;+&lt;kbd&gt;Del&lt;/kbd&gt; 重启电脑<br></code></pre></td></tr></table></figure>



<p>使用 <kbd>Ctrl</kbd>+<kbd>Alt</kbd>+<kbd>Del</kbd> 重启电脑</p>
<h2 id="命令"><a href="#命令" class="headerlink" title="命令"></a>命令</h2><h3 id="配置"><a href="#配置" class="headerlink" title="配置"></a>配置</h3><blockquote>
<p>npm install hexo -g &#x2F;&#x2F;安装</p>
<p>npm update hexo -g &#x2F;&#x2F;升级</p>
<p>hexo g &#x2F;&#x2F; &#x3D; hexo generate 生成</p>
<p>hexo s &#x2F;&#x2F; &#x3D; hexo server 本地服务预览</p>
<p>hexo s -p xxxx &#x2F;&#x2F; 更改本地端口</p>
<p>hexo d &#x2F;&#x2F; &#x3D; hexo deploy 部署<br> *下载了豆瓣插件 即不可使用 hexo d</p>
<p>hexo d -g &#x2F;&#x2F; &#x3D; hexo g -d 生成后部署</p>
<p>hexo clean &#x2F;&#x2F;清缓存</p>
</blockquote>
<h3 id="博客"><a href="#博客" class="headerlink" title="博客"></a>博客</h3><blockquote>
<p>hexo new post “xxx”</p>
<p>hexo new page xxx</p>
<p>hexo new photo “xxx”</p>
</blockquote>
<h3 id="豆瓣爬取"><a href="#豆瓣爬取" class="headerlink" title="豆瓣爬取"></a>豆瓣爬取</h3><blockquote>
<p>hexo clean &amp;&amp; hexo douban -bgm &amp;&amp; hexo g<br> *-bgm中 b-books 、g-games、m-movies可以只选部分</p>
</blockquote>
<h2 id="写作"><a href="#写作" class="headerlink" title="写作"></a>写作</h2><h3 id="Post-Front-matter"><a href="#Post-Front-matter" class="headerlink" title="Post Front-matter"></a>Post Front-matter</h3><figure class="highlight markdown"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br></pre></td><td class="code"><pre><code class="hljs markdown">---<br>title:     // 文章标题<br>date:   // 创建日期<br>updated:  // 更新日期<br>tags:    <br><span class="hljs-bullet">   -</span> a<br><span class="hljs-bullet">   -</span> b   // 标签<br>categories: <br><span class="hljs-bullet">   -</span> a<br><span class="hljs-bullet">   -</span> b  // 分类<br>keywords:  // 关键字<br>description: // 在主页描述、若不选自动节选<br>cover:  // 主页缩略图<br>top<span class="hljs-emphasis">_img:  // 顶部图片 （链接）</span><br><span class="hljs-emphasis">// *若未设置 top_</span>img，则使用 cover图，没 cover则默认图<br><span class="hljs-section">comments：// 评论开启（true/false）、默认true</span><br><span class="hljs-section">---</span><br></code></pre></td></tr></table></figure>

<blockquote>
<p>一定要用小写，否则无法识别</p>
</blockquote>
<h3 id="提示块标签"><a href="#提示块标签" class="headerlink" title="提示块标签"></a>提示块标签</h3><blockquote>
<p>标签不是Markdown标准格式，为hexo特有，且以下写法只是用Next等主题下</p>
</blockquote>
<figure class="highlight markdown"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br></pre></td><td class="code"><pre><code class="hljs markdown">&#123;% note default %&#125;<br>default 提示块标签<br>&#123;% endnote %&#125;<br><br>&#123;% note primary no-icon %&#125;  //可使用语法 no-icon去掉小图标<br>primary 提示块标签<br>&#123;% endnote %&#125;<br><br>&#123;% note success %&#125;<br>success 提示块标签<br>&#123;% endnote %&#125;<br><br>&#123;% note info %&#125;<br>info 提示块标签<br>&#123;% endnote %&#125;<br><br>&#123;% note warning %&#125;<br>warning 提示块标签<br>&#123;% endnote %&#125;<br><br>&#123;% note danger %&#125;<br>danger 提示块标签<br>&#123;% endnote %&#125;<br></code></pre></td></tr></table></figure>

<p><strong>效果</strong></p>
<img src="https://raw.githubusercontent.com/maxma128/imagehosting/master/img/C{X1EKBO1SFA7QFSH7LHTYQ.png" srcset="/yyds/img/loading.gif" lazyload style="zoom:50%">

<h1 id="Markdown"><a href="#Markdown" class="headerlink" title="Markdown"></a>Markdown</h1><hr>
<blockquote>
<p>主要为Typora编辑支持下，且Typora中语法和文本间需要空格</p>
</blockquote>
<h3 id="一、标题"><a href="#一、标题" class="headerlink" title="一、标题"></a>一、标题</h3><figure class="highlight markdown"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><code class="hljs markdown"><span class="hljs-section"># 一级标题</span><br>...<br><span class="hljs-section">###### 六级最小</span><br></code></pre></td></tr></table></figure>

<h3 id="二、主要"><a href="#二、主要" class="headerlink" title="二、主要"></a>二、主要</h3><figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br></pre></td><td class="code"><pre><code class="hljs undefined">**1加粗**<br>*2斜体*<br>***3加粗+斜体***<br>~~4删除线~~<br>^5^上标<br>~6~下标<br>1. 有序列表<br>2. 有序列表<br>- 无序列表<br>+ 无序列表<br>* 无序列表<br></code></pre></td></tr></table></figure>

<blockquote>
<p>字体处理中语法和文本不能加空格</p>
</blockquote>
<p>效果：</p>
<p><strong>1加粗</strong><br> <em>2斜体</em><br> *<strong>3加粗+斜体*</strong><br> <del>4删除线</del><br> 5上标<br> 6下标</p>
<ol>
<li>有序列表</li>
<li>有序列表</li>
</ol>
<ul>
<li><p>无序列表</p>
</li>
<li><p>无序列表</p>
</li>
<li><p>无序列表</p>
</li>
</ul>
<h3 id="其它"><a href="#其它" class="headerlink" title="其它"></a>其它</h3><h4 id="表格"><a href="#表格" class="headerlink" title="表格"></a>表格</h4><figure class="highlight ruby"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br></pre></td><td class="code"><pre><code class="hljs ruby">表头|<span class="hljs-params">表头</span>|表头<br>---|<span class="hljs-params">:--:</span>|---: <span class="hljs-regexp">//</span>默认居左，<span class="hljs-symbol">:</span>居中<span class="hljs-symbol">:</span>，居右:<br>内容|<span class="hljs-params">内容</span>|内容<br>内容|<span class="hljs-params">内容</span>|内容<br><span class="hljs-number">1</span>|<span class="hljs-params">2</span>|<span class="hljs-number">3</span><br></code></pre></td></tr></table></figure>

<p>效果：</p>
<table>
<thead>
<tr>
<th>表头</th>
<th align="center">表头</th>
<th align="right">表头</th>
</tr>
</thead>
<tbody><tr>
<td>内容</td>
<td align="center">内容</td>
<td align="right">内容</td>
</tr>
<tr>
<td>内容</td>
<td align="center">内容</td>
<td align="right">内容</td>
</tr>
<tr>
<td>1</td>
<td align="center">2</td>
<td align="right">3</td>
</tr>
</tbody></table>
<h4 id="插入代码"><a href="#插入代码" class="headerlink" title="插入代码"></a>插入代码</h4><figure class="highlight go"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><code class="hljs go">(<span class="hljs-string">``</span><span class="hljs-string">`此处写语言</span><br><span class="hljs-string"> 代码...</span><br><span class="hljs-string">`</span><span class="hljs-string">``</span>)<br></code></pre></td></tr></table></figure>

<blockquote>
<p>为防止编译加了（），实际使用中没有（ ）</p>
</blockquote>
<p>效果：</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs none">代码...<br></code></pre></td></tr></table></figure>

<h4 id="引用"><a href="#引用" class="headerlink" title="引用"></a>引用</h4><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs shell"><span class="hljs-meta prompt_">&gt;</span><span class="language-bash">引用</span><br></code></pre></td></tr></table></figure>

<p>效果：</p>
<blockquote>
<p>引用</p>
</blockquote>
<h4 id="图片-链接"><a href="#图片-链接" class="headerlink" title="图片&#x2F;链接"></a>图片&#x2F;链接</h4><figure class="highlight csharp"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><code class="hljs csharp">[<span class="hljs-meta">QQ</span>](https:<span class="hljs-comment">//im.qq.com/)</span><br>![图片](xxxx)  <span class="hljs-comment">//xxxx为图片链接</span><br></code></pre></td></tr></table></figure>

<p>图片还可插入Html标签<br> 例：</p>
<figure class="highlight html"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs html"><span class="hljs-tag">&lt;<span class="hljs-name">img</span> <span class="hljs-attr">src</span>=<span class="hljs-string">&quot;xxxx&quot;</span> <span class="hljs-attr">style</span>=<span class="hljs-string">&quot;zoom:80%&quot;</span> &gt;</span> //zoom可定图片大小比例，部分平台不支持<br></code></pre></td></tr></table></figure>

<p>最后编辑于 ：2020.07.19 11:20:49</p>
<p>作者：maxma128<br>链接：<a target="_blank" rel="noopener" href="https://www.jianshu.com/p/9a9b35c819c3">https://www.jianshu.com/p/9a9b35c819c3</a><br>来源：简书<br>著作权归作者所有。商业转载请联系作者获得授权，非商业转载请注明出处。</p>
<h2 id="Markdown-图片尺寸对齐等详细使用"><a href="#Markdown-图片尺寸对齐等详细使用" class="headerlink" title="Markdown 图片尺寸对齐等详细使用"></a>Markdown 图片尺寸对齐等详细使用</h2><p>Markdown教程<br>专栏收录该内容<br>12 篇文章4 订阅<br>订阅专栏<br>✍️作者简介：小北编程（专注于HarmonyOS、Android、Java、Web、TCP&#x2F;IP等技术方向）<br>🐳博客主页： 开源中国、稀土掘金、51cto博客、博客园、知乎、简书、慕课网、CSDN<br>🔔如果文章对您些帮助请👉关注✨、点赞👍、收藏📂、评论💬。<br>🔥如需转载请参考【转载须知】</p>
<p>文章目录<br>图片基本用法<br>调整尺寸大小<br>调整对齐方式<br>总结Markdown效果示例<br>内嵌HTML语法<br>HTML基础语法<br>HTML调整尺寸大小<br>HTML调整对齐方式<br>HTML 使用p标签实现复杂排版<br>基础语法<br>图文混排效果实现<br>总结HTML效果示例<br>总结<br>图片基本用法<br>图片是比文字更容易表达多方位信息的媒介。Markdown 自然也为图片的添加提供了便捷的方法。</p>
<p>Markdown 图片语法格式如下：</p>
<p><img src="/yyds/%E5%9B%BE%E7%89%87%E5%9C%B0%E5%9D%80" srcset="/yyds/img/loading.gif" lazyload alt="替代文字"></p>
<p><img src="/yyds/%E5%9B%BE%E7%89%87%E5%9C%B0%E5%9D%80" srcset="/yyds/img/loading.gif" lazyload alt="替代文字" title="可选标题"></p>
<p><a href="%E9%93%BE%E6%8E%A5%E5%9B%BE%E7%89%87%E8%B7%B3%E8%BD%AC%E5%9C%B0%E5%9D%80"><img src="/yyds/%E5%9B%BE%E7%89%87%E5%9C%B0%E5%9D%80" srcset="/yyds/img/loading.gif" lazyload alt="替代文字"></a></p>
<p>以感叹号 ! 开始<br>紧接着方括号，包含图片的替代文字<br>接下来是普通括号，内含图片的URL地址，你还可以使用引号包裹并加上可选的 ‘title’ 属性文字。<br>调整尺寸大小<br>直接在连接地址后添加例如&#x3D;宽x高的数字即可调整图片大小。</p>
<p>如果需要调整图片大小，只需在图片地址后添加尺寸参数，例如：</p>
<p>![替代文字](图片地址 &#x3D;600x600)</p>
<p>说明：等号 “ &#x3D; “ 前面需要有一个空格 &#x3D;宽x高</p>
<p>带尺寸的图片：&#x3D;600x600<br>宽度确定高度等比例的图片：&#x3D;600x<br>高度确定宽度等比例的图片：&#x3D;x600<br>调整对齐方式<br>若需要调整对齐方式，需要在图片链接地址后面添加指令#pic_center，该命令的位置在指定尺寸的指令前面。</p>
<p><img src="/yyds/%E5%9B%BE%E7%89%87%E9%93%BE%E6%8E%A5#pic_center" srcset="/yyds/img/loading.gif" lazyload alt="图片描述"></p>
<p>调整图片位置	说明	实例<br>#pic_center	居中对齐	<img src="/yyds/%E5%9B%BE%E7%89%87%E9%93%BE%E6%8E%A5#pic_center" srcset="/yyds/img/loading.gif" lazyload alt="图片描述"><br>#pic_left	靠左对齐	<img src="/yyds/%E5%9B%BE%E7%89%87%E9%93%BE%E6%8E%A5#pic_left" srcset="/yyds/img/loading.gif" lazyload alt="图片描述"><br>#pic_right	靠右对齐	<img src="/yyds/%E5%9B%BE%E7%89%87%E9%93%BE%E6%8E%A5#pic_right" srcset="/yyds/img/loading.gif" lazyload alt="图片描述"><br>说明：# 前面不需要空格，&#x3D; 前面需要有一个空格</p>
<p>总结Markdown效果示例<br>这里总结了一个例子：<br>对齐方式：#pic_center<br>图片大小：&#x3D;300x200<br>图片链接：(<a target="_blank" rel="noopener" href="https://blog.csdn.net/u014696856">https://blog.csdn.net/u014696856</a>)<br>这里就不一一举例了，总结一个实例剩下的大家去实践。</p>
<p><a target="_blank" rel="noopener" href="https://blog.csdn.net/u014696856">![这是图片](https://img-blog.csdnimg.cn/direct/6de94c45061d424f95dd253b6bce6ec9.webp#pic_center &#x3D;300x200)</a><br>1</p>
<p>内嵌HTML语法<br>HTML基础语法<br>基础语法：</p>
<img src="图片链接" srcset="/yyds/img/loading.gif" lazyload>

<img src="图片链接" srcset="/yyds/img/loading.gif" lazyload alt="图片alt" title="图片title">

<p>src 属性指定图像的URL地址<br>alt 属性为图像定义可替换的文本<br>title 属性描述元素的额外信息<br>可以通过 width 和 height 属性设置图像的尺寸，通过 style 属性定义行内样式，包括缩放效果。</p>
<p>HTML调整尺寸大小<br>基础语法：</p>
<img src="图片链接" srcset="/yyds/img/loading.gif" lazyload width="100%">

<img src="图片链接" srcset="/yyds/img/loading.gif" lazyload alt="图片alt" title="图片title">

<p>调整图片尺寸	说明	实例<br>width&#x3D;”100%”	横向占比	<img src="图片链接" srcset="/yyds/img/loading.gif" lazyload width="100%"><br>width&#x3D;”600”	宽度	<img src="图片链接" srcset="/yyds/img/loading.gif" lazyload width="600"><br>height&#x3D;”600”	高度	<img src="图片链接" srcset="/yyds/img/loading.gif" lazyload height="600"><br>调整位置和尺寸举个例子：<br>&lt;img src&#x3D;”图片链接” align &#x3D; “right” width&#x3D;”600” height&#x3D;”600”&#x2F;&gt;</p>
<p>HTML调整对齐方式<br>基础语法：</p>
<img src="图片链接" srcset="/yyds/img/loading.gif" lazyload align = "left">

<p>调整图片位置	说明	实例<br>align	居中对齐： align &#x3D; “middle”<br>靠左对齐： align &#x3D; “left”<br>靠右对齐： align &#x3D; “right”	align属于img标签属性，使用起来也简单例如：<br><img src="图片链接" srcset="/yyds/img/loading.gif" lazyload align = "right"/><br>注意图片描述可以不写,调整图片的位置追加在图片链接的后面<br>最好将 <img> 标签包裹在 <p align="center"> . . . </p>标签内使用，可以实现更多、更好的效果。</p>
<p>HTML 使用p标签实现复杂排版<br>基础语法<br>也可通过将<img>标签包裹在<p align=“center”> . . . </p>标签内修改图片的对齐方式。</p>
<p>基础语法：</p>
<p>    
    <img src="图片链接" srcset="/yyds/img/loading.gif" lazyload/>
</p>

<p align="center">    
    <img src="图片链接" srcset="/yyds/img/loading.gif" lazyload width="400"/>
</p>

<p align="center">    
    <img src="图片链接1" srcset="/yyds/img/loading.gif" lazyload width="400"/>
    <img src="图片链接2" srcset="/yyds/img/loading.gif" lazyload width="400"/>
    <img src="图片链接3" srcset="/yyds/img/loading.gif" lazyload width="400"/>
    <img src="图片链接4" srcset="/yyds/img/loading.gif" lazyload width="400"/>
</p>

<p>图文混排效果实现<br>要实现左图右文或左文右图的效果，需要在 标签后添加 align 属性：</p>
<p>align&#x3D;“left” 实现左图右文效果<br>align&#x3D;“right” 实现左文右图效果<br>实现左图右文或左文右图的效果<br>需要左右混排的文字放在<p > . . . </p>标签内，且需在<img>标签行的下面。放在<p > . . . </p>标签外的排版为正常的上下排版样式。<br>左图右文：align &#x3D; “left”<br>左文右图：align &#x3D; “right”</p>
<p>基础语法：</p>
<p>    
    <img src="图片链接" srcset="/yyds/img/loading.gif" lazyload width="400" align="left"/>
    文字在右边，图片在左边。
</p>

<p>    
    <img src="图片链接" srcset="/yyds/img/loading.gif" lazyload width="400" align="right"/>
    文字在左边，图片在右边。
</p>

<p>总结HTML效果示例<br>写了两个复杂的实例，经过这两个实例HTML图片基本都能实现，图文混排的不能能实现太复杂的效果，很多浏览器也不支持 <style>实现复杂的效果。</p>
<p><strong>四个图片成正方形显示：</strong></p>
<p align = "center">    
<img  src="https://img-blog.csdnimg.cn/direct/7f0ff407ecc846fca0067cbda23236bc.png" srcset="/yyds/img/loading.gif" lazyload width="400" />
<img  src="https://img-blog.csdnimg.cn/direct/7f0ff407ecc846fca0067cbda23236bc.png" srcset="/yyds/img/loading.gif" lazyload width="400" />
<img  src="https://img-blog.csdnimg.cn/direct/7f0ff407ecc846fca0067cbda23236bc.png" srcset="/yyds/img/loading.gif" lazyload width="400" />
<img  src="https://img-blog.csdnimg.cn/direct/7f0ff407ecc846fca0067cbda23236bc.png" srcset="/yyds/img/loading.gif" lazyload width="400" />
</p>

<p><strong>图文显示示例：</strong></p>
<p align = “center”>    
    <img src="https://img-blog.csdnimg.cn/img_convert/9f0a5f6a82cbc594408f7b345284bce1.png" srcset="/yyds/img/loading.gif" lazyload width="200" align="left"/>
    <br> <br>
            Markdown 是一种轻量级标记语言，它允许人们使用易读易写的纯文本格式编写文档。<br>
        Markdown 语言在 2004 由约翰·格鲁伯（英语：John Gruber）创建。<br>
        Markdown 编写的文档可以导出 HTML 、Word、图像、PDF、Epub 等多种格式的文档。<br>
        Markdown 编写的文档后缀为 .md, .markdown。
</p>


<p>四个图片成正方形显示：</p>
<p>图文显示示例：</p>
<p>Markdown 是一种轻量级标记语言，它允许人们使用易读易写的纯文本格式编写文档。<br>Markdown 语言在 2004 由约翰·格鲁伯（英语：John Gruber）创建。<br>Markdown 编写的文档可以导出 HTML 、Word、图像、PDF、Epub 等多种格式的文档。<br>Markdown 编写的文档后缀为 .md, .markdown。</p>
<p>总结<br>Markdown 文档只能引用外部图片，无法在像 word 一样将图片嵌入到文档中，给自己找一个习惯的图床是个好方法。<br>Markdown 文档里很难实现图文混排，比如文字环绕图片、图片覆盖文字这类 Word 中的效果，如果需要这样的排版，建议直接选用 Word 。<br>Markdown 文档虽然不能嵌入图片，但通过引用外部图片和HTML语法，我们可以实现丰富的图文排版效果。需要注意的是，在实现图文混排时，建议将 <img> 标签包裹在 <p align=“center”> … </p> 内，以获得更好的效果。同时，选择一个习惯的图床来存储图片会更加方便。<br>👍 点赞，是我创作的动力！<br>⭐️ 收藏，是我努力的指引！<br>✏️ 评论，是我进步的宝藏！<br>💖 衷心感谢你的阅读以及支持！<br>————————————————</p>
<pre><code class="hljs">                        版权声明：本文为博主原创文章，遵循 CC 4.0 BY-SA 版权协议，转载请附上原文出处链接和本声明。
</code></pre>
<p>原文链接：<a target="_blank" rel="noopener" href="https://blog.csdn.net/u014696856/article/details/135968309">https://blog.csdn.net/u014696856/article/details/135968309</a></p>
<h2 id="markdown中文字对齐方式设定"><a href="#markdown中文字对齐方式设定" class="headerlink" title="markdown中文字对齐方式设定"></a>markdown中文字对齐方式设定</h2><p>  之前写博客的时候希望写出如下的内容：<br>(1) y &#x3D; k x + b y &#x3D; k x + b \tag{1}<br>y&#x3D;kx+b(1)</p>
<p>于是去查找如何在markdown中设置文字右对齐，确实找到了右对齐的方式：</p>
<p align="right">右对齐</p>

<p>效果如下：</p>
<p>右对齐</p>
<center>居中</center>

<p>效果如下：</p>
<p>居中</p>
<p align="left">左对齐</p>

<p>效果如下：</p>
<p>左对齐</p>
<p>  但是并不是我想要的，经过多方查找，才发现该内容是使用LaTeX排版写的……附上LaTeX代码：</p>
<p>$$y &#x3D; k x + b \tag{1}$$ </p>
<p>其中$$ $$代表单独一行的公式，\tag{1}才是公式右边的{1}。</p>
<p>文章知识点与官方知识档案匹配，可进一步学习相关知识<br>CS入门技能树MarkDown入门MarkDown介绍39955 人正在系统学习中</p>
<pre><code class="hljs">                        版权声明：本文为博主原创文章，遵循 CC 4.0 BY-SA 版权协议，转载请附上原文出处链接和本声明。
</code></pre>
<p>原文链接：<a target="_blank" rel="noopener" href="https://blog.csdn.net/yyhaohaoxuexi/article/details/86520926">https://blog.csdn.net/yyhaohaoxuexi/article/details/86520926</a></p>
<h2 id="Markdown扩展语法（合并单元格、设置表格-文字-图片对齐方式、修改字体字号颜色、修改图片大小等）"><a href="#Markdown扩展语法（合并单元格、设置表格-文字-图片对齐方式、修改字体字号颜色、修改图片大小等）" class="headerlink" title="Markdown扩展语法（合并单元格、设置表格 文字 图片对齐方式、修改字体字号颜色、修改图片大小等）"></a><a target="_blank" rel="noopener" href="https://www.cnblogs.com/poem357/p/17816004.html">Markdown扩展语法（合并单元格、设置表格 文字 图片对齐方式、修改字体字号颜色、修改图片大小等）</a></h2><h2 id="Markdown扩展语法"><a href="#Markdown扩展语法" class="headerlink" title="Markdown扩展语法"></a>Markdown扩展语法</h2><blockquote>
<p>写在前面：</p>
<ul>
<li>实现扩展语法篇中提到的各类功能的方式不止本篇博客这一种，比如设置对齐，除本博客提到的方法外，还可以通过修改css等方式来实现。但通过对比，从逻辑、记忆难度和本人的书写习惯出发，最终选择了一种方式去呈现。</li>
<li>这篇主要讲述的是Markdown的扩展语法，主要针对特殊的应用场景。如果只是作为日常的书写记录，我认为Markdown基础语法就已经够用了。**<a target="_blank" rel="noopener" href="https://www.cnblogs.com/poem357/p/17796478.html">基础语法我也写过一篇，感兴趣的可以去看看。</a>**</li>
</ul>
</blockquote>
<p>目录</p>
<ul>
<li>Markdown扩展语法<ul>
<li><a target="_blank" rel="noopener" href="https://www.cnblogs.com/poem357/p/17816004.html#%E5%9C%A8%E5%88%97%E8%A1%A8%E4%B8%AD%E5%B5%8C%E5%A5%97%E5%85%B6%E4%BB%96%E5%85%83%E7%B4%A0">在列表中嵌套其他元素</a></li>
<li><a target="_blank" rel="noopener" href="https://www.cnblogs.com/poem357/p/17816004.html#%E5%90%88%E5%B9%B6%E5%8D%95%E5%85%83%E6%A0%BC">合并单元格</a></li>
<li><a target="_blank" rel="noopener" href="https://www.cnblogs.com/poem357/p/17816004.html#%E5%AF%B9%E9%BD%90%E6%96%B9%E5%BC%8F">对齐方式</a></li>
<li><a target="_blank" rel="noopener" href="https://www.cnblogs.com/poem357/p/17816004.html#%E8%83%8C%E6%99%AF%E8%89%B2">背景色</a></li>
<li><a target="_blank" rel="noopener" href="https://www.cnblogs.com/poem357/p/17816004.html#%E5%AE%9A%E4%B9%89%E5%AD%97%E4%BD%93%E5%AD%97%E5%8F%B7%E5%92%8C%E9%A2%9C%E8%89%B2">定义字体、字号和颜色</a></li>
<li><a target="_blank" rel="noopener" href="https://www.cnblogs.com/poem357/p/17816004.html#%E4%BF%AE%E6%94%B9%E5%9B%BE%E7%89%87%E5%A4%A7%E5%B0%8F%E5%92%8C%E4%BD%8D%E7%BD%AE">修改图片大小和位置</a></li>
<li><a target="_blank" rel="noopener" href="https://www.cnblogs.com/poem357/p/17816004.html#%E5%BC%95%E7%94%A8%E7%B1%BB%E5%9E%8B%E9%93%BE%E6%8E%A5">引用类型链接</a></li>
<li><a target="_blank" rel="noopener" href="https://www.cnblogs.com/poem357/p/17816004.html#%E8%84%9A%E6%B3%A8">脚注</a></li>
<li><a target="_blank" rel="noopener" href="https://www.cnblogs.com/poem357/p/17816004.html#%E5%AE%9A%E4%B9%89%E5%88%97%E8%A1%A8">定义列表</a></li>
<li><a target="_blank" rel="noopener" href="https://www.cnblogs.com/poem357/p/17816004.html#%E4%BB%BB%E5%8A%A1%E5%88%97%E8%A1%A8">任务列表</a></li>
<li><a target="_blank" rel="noopener" href="https://www.cnblogs.com/poem357/p/17816004.html#%E4%BD%BF%E7%94%A8emoji%E8%A1%A8%E6%83%85">使用emoji表情</a></li>
</ul>
</li>
</ul>
<h3 id="在列表中嵌套其他元素"><a href="#在列表中嵌套其他元素" class="headerlink" title="在列表中嵌套其他元素"></a>在列表中嵌套其他元素</h3><hr>
<p>要在保留列表连续性的同时在列表中添加另一种元素，需将该元素缩进一个或两个制表符。</p>
<ul>
<li>添加段落、引用、图片和列表嵌套需要缩进1个制表符</li>
<li>添加代码嵌套需要缩进2个制表符</li>
</ul>
<p><strong>段落</strong><br>示例：</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></td><td class="code"><pre><code class="hljs dotnetcli">- This is the first list item.<br>- This is the second list item.<br>    I need to add other paragraph below the second list item.<br>- This is the third list item.<br></code></pre></td></tr></table></figure>

<p>效果：</p>
<ul>
<li>This is the first list item.</li>
<li>This is the second list item.<br>I need to add other paragraph below the second list item.</li>
<li>This is the third list item.</li>
</ul>
<p><strong>引用块</strong><br>示例：</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></td><td class="code"><pre><code class="hljs dotnetcli">- This is the first list item.<br>- This is the second list item.<br>    &gt; I need to add other paragraph below the second list item.<br>- This is the third list item.<br></code></pre></td></tr></table></figure>

<p>效果：</p>
<ul>
<li><p>This is the first list item.</p>
</li>
<li><p>This is the second list item.</p>
<blockquote>
<p>I need to add other paragraph below the second list item.</p>
</blockquote>
</li>
<li><p>This is the third list item.</p>
</li>
</ul>
<p><strong>列表</strong><br>示例：</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></td><td class="code"><pre><code class="hljs dotnetcli">1. This is the first list item.<br>2. This is the second list item.<br>    - I need to add other paragraph below the second list item.<br>3. This is the third list item.<br></code></pre></td></tr></table></figure>

<p>效果：</p>
<ol>
<li>This is the first list item.</li>
<li>This is the second list item.<ul>
<li>I need to add other paragraph below the second list item.</li>
</ul>
</li>
<li>This is the third list item.</li>
</ol>
<p><strong>图片</strong><br>示例：</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></td><td class="code"><pre><code class="hljs dotnetcli">- This is the first list item.<br>- This is the second list item.<br>    &lt;img src=&quot;https://img2023.cnblogs.com/blog/3258107/202311/3258107-20231107210109373-1183604037.jpg&quot; width=&quot;30%&quot; height=&quot;30%&quot;&gt;<br>- This is the third list item.<br></code></pre></td></tr></table></figure>

<p>效果：</p>
<ul>
<li>This is the first list item.</li>
<li>This is the second list item.<img src="https://img2023.cnblogs.com/blog/3258107/202311/3258107-20231107210109373-1183604037.jpg" srcset="/yyds/img/loading.gif" lazyload alt="img" style="zoom:33%;" /></li>
<li>This is the third list item.</li>
</ul>
<p><strong>代码块</strong><br>示例：</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br></pre></td><td class="code"><pre><code class="hljs dotnetcli">- This is the first list item.<br>- This is the second list item.<br>        ```c<br>        &#123;I need to add other paragraph below the second list item.&#125;<br>        ```<br>- This is the third list item.<br></code></pre></td></tr></table></figure>

<p>效果：</p>
<ul>
<li>This is the first list item.</li>
<li>This is the second list item.<br><code>c &#123;I need to add other paragraph below the second list item.&#125;</code></li>
<li>This is the third list item.</li>
</ul>
<h3 id="合并单元格"><a href="#合并单元格" class="headerlink" title="合并单元格"></a>合并单元格</h3><hr>
<blockquote>
<p>Markdown本身不提供合并单元格的语法，但支持HTML标记语言，所以我们可以通过HTML实现跨行&#x2F;跨列的表格效果。</p>
</blockquote>
<p><strong>HTML表格用到的元素符号：</strong></p>
<table>
<thead>
<tr>
<th align="center">符号</th>
<th align="center">全称</th>
<th align="center">功能</th>
</tr>
</thead>
<tbody><tr>
<td align="center"><code>&lt;table&gt;</code></td>
<td align="center">—</td>
<td align="center">表格开始</td>
</tr>
<tr>
<td align="center"><code>&lt;/table&gt;</code></td>
<td align="center">—</td>
<td align="center">表格结束</td>
</tr>
<tr>
<td align="center"><code>&lt;tr&gt;</code></td>
<td align="center">table row</td>
<td align="center">行开始</td>
</tr>
<tr>
<td align="center"><code>&lt;/tr&gt;</code></td>
<td align="center">table row</td>
<td align="center">行结束</td>
</tr>
<tr>
<td align="center"><code>&lt;th&gt;</code></td>
<td align="center">table header</td>
<td align="center">表头开始</td>
</tr>
<tr>
<td align="center"><code>&lt;/th&gt;</code></td>
<td align="center">table header</td>
<td align="center">表头结束</td>
</tr>
<tr>
<td align="center"><code>&lt;td&gt;</code></td>
<td align="center">table data</td>
<td align="center">单元格数据（表格元素）开始</td>
</tr>
<tr>
<td align="center"><code>&lt;/td&gt;</code></td>
<td align="center">table data</td>
<td align="center">单元格数据（表格元素）结束</td>
</tr>
<tr>
<td align="center"><code>&lt;rowspan=&quot;n&quot;&gt;</code></td>
<td align="center">span：跨度</td>
<td align="center">合并n行</td>
</tr>
<tr>
<td align="center"><code>&lt;colspan=&quot;n&quot;&gt;</code></td>
<td align="center">span：跨度</td>
<td align="center">合并n列</td>
</tr>
</tbody></table>
<p><strong>书写要点：</strong></p>
<ol>
<li>在表格中，开始符号和结束符号之间写文本数据；<br><code>&lt;td&gt;text here&lt;/td&gt;</code></li>
<li>当文本元素超过两个时，元素之间另起一行；<br><code>HTML &lt;tr&gt; &lt;td&gt;text here&lt;/td&gt; &lt;td&gt;text here&lt;/td&gt; &lt;td&gt;text here&lt;/td&gt; &lt;/tr&gt;</code></li>
<li>合并行&#x2F;列属于单元格的属性，要在<code>&lt;td&gt;&lt;/td&gt;</code>内部书写，n为要合并的单元格数量。<br>语法：<code>&lt;td rowspan=&quot;n&quot;&gt;text here&lt;/td&gt;</code></li>
</ol>
<p>示例：</p>
<figure class="highlight html"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br></pre></td><td class="code"><pre><code class="hljs HTML"><span class="hljs-tag">&lt;<span class="hljs-name">table</span>&gt;</span><br>    <span class="hljs-tag">&lt;<span class="hljs-name">tr</span>&gt;</span><br>        <span class="hljs-tag">&lt;<span class="hljs-name">th</span>&gt;</span>Header1<span class="hljs-tag">&lt;/<span class="hljs-name">th</span>&gt;</span><br>        <span class="hljs-tag">&lt;<span class="hljs-name">th</span>&gt;</span>Header2<span class="hljs-tag">&lt;/<span class="hljs-name">th</span>&gt;</span><br>        <span class="hljs-tag">&lt;<span class="hljs-name">th</span>&gt;</span>Header3<span class="hljs-tag">&lt;/<span class="hljs-name">th</span>&gt;</span><br>    <span class="hljs-tag">&lt;/<span class="hljs-name">tr</span>&gt;</span><br>    <span class="hljs-tag">&lt;<span class="hljs-name">tr</span>&gt;</span><br>        <span class="hljs-tag">&lt;<span class="hljs-name">td</span>&gt;</span>row1, col1<span class="hljs-tag">&lt;/<span class="hljs-name">td</span>&gt;</span><br>        <span class="hljs-tag">&lt;<span class="hljs-name">td</span>&gt;</span>row1, col2<span class="hljs-tag">&lt;/<span class="hljs-name">td</span>&gt;</span><br>        <span class="hljs-tag">&lt;<span class="hljs-name">td</span>&gt;</span>row1, col3<span class="hljs-tag">&lt;/<span class="hljs-name">td</span>&gt;</span><br>    <span class="hljs-tag">&lt;/<span class="hljs-name">tr</span>&gt;</span><br>    <span class="hljs-tag">&lt;<span class="hljs-name">tr</span>&gt;</span><br>        <span class="hljs-tag">&lt;<span class="hljs-name">td</span> <span class="hljs-attr">rowspan</span>=<span class="hljs-string">&quot;2&quot;</span>&gt;</span>rowspan<span class="hljs-tag">&lt;/<span class="hljs-name">td</span>&gt;</span><br>        <span class="hljs-tag">&lt;<span class="hljs-name">td</span>&gt;</span>row2, col2<span class="hljs-tag">&lt;/<span class="hljs-name">td</span>&gt;</span><br>        <span class="hljs-tag">&lt;<span class="hljs-name">td</span>&gt;</span>row2, col3<span class="hljs-tag">&lt;/<span class="hljs-name">td</span>&gt;</span><br>    <span class="hljs-tag">&lt;/<span class="hljs-name">tr</span>&gt;</span><br>    <span class="hljs-tag">&lt;<span class="hljs-name">tr</span>&gt;</span><br>        <span class="hljs-tag">&lt;<span class="hljs-name">td</span> <span class="hljs-attr">colspan</span>=<span class="hljs-string">&quot;2&quot;</span>&gt;</span>row3, col2<span class="hljs-tag">&lt;/<span class="hljs-name">td</span>&gt;</span><br>    <span class="hljs-tag">&lt;/<span class="hljs-name">tr</span>&gt;</span><br><span class="hljs-tag">&lt;/<span class="hljs-name">table</span>&gt;</span><br></code></pre></td></tr></table></figure>

<p>效果：</p>
<table>
<thead>
<tr>
<th>Header1</th>
<th>Header2</th>
<th>Header3</th>
</tr>
</thead>
<tbody><tr>
<td>row1, col1</td>
<td>row1, col2</td>
<td>row1, col3</td>
</tr>
<tr>
<td>rowspan</td>
<td>row2, col2</td>
<td>row2, col3</td>
</tr>
<tr>
<td>row3, col2</td>
<td></td>
<td></td>
</tr>
</tbody></table>
<h3 id="对齐方式"><a href="#对齐方式" class="headerlink" title="对齐方式"></a>对齐方式</h3><hr>
<blockquote>
<p>通过HTML语言设置表格或单元格内容的对齐方式（左对齐、居中、右对齐）</p>
</blockquote>
<p><strong>HTML元素对齐用到的元素符号：</strong></p>
<table>
<thead>
<tr>
<th align="left">符号</th>
<th align="left">注释</th>
<th align="left">功能</th>
</tr>
</thead>
<tbody><tr>
<td align="left"><code>align=&quot;&quot;</code></td>
<td align="left">align：对齐</td>
<td align="left">定义元素水平对齐方式</td>
</tr>
<tr>
<td align="left"><code>valign=&quot;&quot;</code></td>
<td align="left">vertical align</td>
<td align="left">定义元素垂直对齐方式</td>
</tr>
<tr>
<td align="left">left</td>
<td align="left">……</td>
<td align="left">左对齐</td>
</tr>
<tr>
<td align="left">center</td>
<td align="left">……</td>
<td align="left">居中对齐</td>
</tr>
<tr>
<td align="left">right</td>
<td align="left">……</td>
<td align="left">右对齐</td>
</tr>
<tr>
<td align="left">top</td>
<td align="left">……</td>
<td align="left">顶端对齐</td>
</tr>
<tr>
<td align="left">middle</td>
<td align="left">……</td>
<td align="left">垂直居中</td>
</tr>
<tr>
<td align="left">bottom</td>
<td align="left">……</td>
<td align="left">底端对齐</td>
</tr>
</tbody></table>
<p><strong>书写要点：</strong></p>
<ol>
<li><p>表格使用水平对齐符号<code>align</code>设置其在网页中居左、居中或居右显示。单元格内文本使用水平&#x2F;垂直对齐<code>align/valign</code>设置其对齐方式；</p>
</li>
<li><p>在对齐符号的双引号内填写对齐方式，两种对齐符号之间添加一个空格；<br>如：<code>align=&quot;center&quot; valign=&quot;center&quot;</code></p>
</li>
<li><p>对齐语句填写在要定义的开始符号（</p>
<figure class="highlight apache"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs apache"><span class="hljs-section">&lt;table&gt;</span><span class="hljs-section">&lt;tr&gt;</span><span class="hljs-section">&lt;td&gt;</span><br></code></pre></td></tr></table></figure>

<p>）中</p>
<ol>
<li>在<code>&lt;table&gt;</code>中添加定义，控制整个表格的对齐方式；</li>
<li>在<code>&lt;tr&gt;</code>中添加定义，控制一行的对齐方式；</li>
<li>在<code>&lt;tb&gt;</code>中添加定义，控制一个单元格的对齐方式；</li>
</ol>
</li>
</ol>
<p>示例：</p>
<figure class="highlight html"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br></pre></td><td class="code"><pre><code class="hljs HTML"><span class="hljs-tag">&lt;<span class="hljs-name">table</span> <span class="hljs-attr">align</span>=<span class="hljs-string">&quot;center&quot;</span>&gt;</span><br>    <span class="hljs-tag">&lt;<span class="hljs-name">tr</span> <span class="hljs-attr">align</span>=<span class="hljs-string">&quot;center&quot;</span> <span class="hljs-attr">valign</span>=<span class="hljs-string">&quot;center&quot;</span>&gt;</span><br>        <span class="hljs-tag">&lt;<span class="hljs-name">th</span>&gt;</span>Header1<span class="hljs-tag">&lt;/<span class="hljs-name">th</span>&gt;</span><br>        <span class="hljs-tag">&lt;<span class="hljs-name">th</span>&gt;</span>Header2<span class="hljs-tag">&lt;/<span class="hljs-name">th</span>&gt;</span><br>        <span class="hljs-tag">&lt;<span class="hljs-name">th</span>&gt;</span>Header3<span class="hljs-tag">&lt;/<span class="hljs-name">th</span>&gt;</span><br>    <span class="hljs-tag">&lt;/<span class="hljs-name">tr</span>&gt;</span><br>    <span class="hljs-tag">&lt;<span class="hljs-name">tr</span> <span class="hljs-attr">align</span>=<span class="hljs-string">&quot;center&quot;</span> <span class="hljs-attr">valign</span>=<span class="hljs-string">&quot;center&quot;</span>&gt;</span><br>        <span class="hljs-tag">&lt;<span class="hljs-name">td</span>&gt;</span>row1, col1<span class="hljs-tag">&lt;/<span class="hljs-name">td</span>&gt;</span><br>        <span class="hljs-tag">&lt;<span class="hljs-name">td</span>&gt;</span>row1, col2<span class="hljs-tag">&lt;/<span class="hljs-name">td</span>&gt;</span><br>        <span class="hljs-tag">&lt;<span class="hljs-name">td</span>&gt;</span>row1, col3<span class="hljs-tag">&lt;/<span class="hljs-name">td</span>&gt;</span><br>    <span class="hljs-tag">&lt;/<span class="hljs-name">tr</span>&gt;</span><br>    <span class="hljs-tag">&lt;<span class="hljs-name">tr</span> <span class="hljs-attr">align</span>=<span class="hljs-string">&quot;center&quot;</span> <span class="hljs-attr">valign</span>=<span class="hljs-string">&quot;center&quot;</span>&gt;</span><br>        <span class="hljs-tag">&lt;<span class="hljs-name">td</span> <span class="hljs-attr">rowspan</span>=<span class="hljs-string">&quot;2&quot;</span>&gt;</span>rowspan<span class="hljs-tag">&lt;/<span class="hljs-name">td</span>&gt;</span><br>        <span class="hljs-tag">&lt;<span class="hljs-name">td</span>&gt;</span>row2, col2<span class="hljs-tag">&lt;/<span class="hljs-name">td</span>&gt;</span><br>        <span class="hljs-tag">&lt;<span class="hljs-name">td</span>&gt;</span>row2, col3<span class="hljs-tag">&lt;/<span class="hljs-name">td</span>&gt;</span><br>    <span class="hljs-tag">&lt;/<span class="hljs-name">tr</span>&gt;</span><br>    <span class="hljs-tag">&lt;<span class="hljs-name">tr</span> <span class="hljs-attr">align</span>=<span class="hljs-string">&quot;center&quot;</span> <span class="hljs-attr">valign</span>=<span class="hljs-string">&quot;center&quot;</span>&gt;</span><br>        <span class="hljs-tag">&lt;<span class="hljs-name">td</span> <span class="hljs-attr">colspan</span>=<span class="hljs-string">&quot;2&quot;</span>&gt;</span>row3, col2<span class="hljs-tag">&lt;/<span class="hljs-name">td</span>&gt;</span><br>    <span class="hljs-tag">&lt;/<span class="hljs-name">tr</span>&gt;</span><br><span class="hljs-tag">&lt;/<span class="hljs-name">table</span>&gt;</span><br></code></pre></td></tr></table></figure>

<p>效果：</p>
<table>
<thead>
<tr>
<th>Header1</th>
<th>Header2</th>
<th>Header3</th>
</tr>
</thead>
<tbody><tr>
<td>row1, col1</td>
<td>row1, col2</td>
<td>row1, col3</td>
</tr>
<tr>
<td>rowspan</td>
<td>row2, col2</td>
<td>row2, col3</td>
</tr>
<tr>
<td>row3, col2</td>
<td></td>
<td></td>
</tr>
</tbody></table>
<h3 id="背景色"><a href="#背景色" class="headerlink" title="背景色"></a>背景色</h3><hr>
<blockquote>
<p>同样的，Markdown语法不支持修改文字背景色，但可以使用HTML来修改表格属性伪装成背景色。</p>
</blockquote>
<p><strong>该功能用到的HTML符号：</strong></p>
<table>
<thead>
<tr>
<th>符号</th>
<th>注释</th>
<th>功能</th>
</tr>
</thead>
<tbody><tr>
<td>bgcolor</td>
<td>background color</td>
<td>定义元素背景色</td>
</tr>
</tbody></table>
<p>书写：将单个单元格视为一行文字，在<code>&lt;td bgcolor=&quot;&quot;&gt;</code>的双引号中添加背景色，背景色可以使用英文，也可以使用十六进制表示。</p>
<p>语法：<code>&lt;td bgcolor=&quot;&quot;&gt;text here&lt;/td&gt;</code></p>
<p>示例：</p>
<figure class="highlight html"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><code class="hljs HTML"><span class="hljs-tag">&lt;<span class="hljs-name">table</span>&gt;</span><span class="hljs-tag">&lt;<span class="hljs-name">tr</span>&gt;</span><span class="hljs-tag">&lt;<span class="hljs-name">td</span> <span class="hljs-attr">bgcolor</span>=<span class="hljs-string">&quot;yellow&quot;</span>&gt;</span>text here<span class="hljs-tag">&lt;/<span class="hljs-name">font</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">td</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">tr</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">table</span>&gt;</span><br><span class="hljs-tag">&lt;<span class="hljs-name">table</span>&gt;</span><span class="hljs-tag">&lt;<span class="hljs-name">tr</span>&gt;</span><span class="hljs-tag">&lt;<span class="hljs-name">td</span> <span class="hljs-attr">bgcolor</span>=<span class="hljs-string">&quot;#42b983&quot;</span>&gt;</span>text here<span class="hljs-tag">&lt;/<span class="hljs-name">font</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">td</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">tr</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">table</span>&gt;</span><br></code></pre></td></tr></table></figure>

<p>效果：</p>
<p>text here</p>
<p>text here</p>
<h3 id="定义字体、字号和颜色"><a href="#定义字体、字号和颜色" class="headerlink" title="定义字体、字号和颜色"></a>定义字体、字号和颜色</h3><hr>
<blockquote>
<p>与合并单元格相同，Markdown本身不提供修改字体属性的语法，但支持HTML标记语言，所以我们可以通过HTML实现更改文字字体、字号和颜色的效果。</p>
</blockquote>
<p><strong>实现该功能用的HTML符号：</strong></p>
<table>
<thead>
<tr>
<th align="center">符号</th>
<th align="center">注释</th>
<th align="center">功能</th>
</tr>
</thead>
<tbody><tr>
<td align="center">font</td>
<td align="center">文字</td>
<td align="center">修改文字属性</td>
</tr>
<tr>
<td align="center">face</td>
<td align="center">字体</td>
<td align="center">定义文字字体</td>
</tr>
<tr>
<td align="center">size</td>
<td align="center">字号</td>
<td align="center">定义文字字号</td>
</tr>
<tr>
<td align="center">color</td>
<td align="center">颜色</td>
<td align="center">定义文字颜色</td>
</tr>
</tbody></table>
<p><strong>书写要点：</strong></p>
<ol>
<li><p>font是一对标签，要对文字属性进行修改，需要在起始标签<code>&lt;font&gt;</code>中添加语句；<br><code>&lt;font&gt;text here&lt;/font&gt;</code></p>
</li>
<li><p>修改字体，使用<code>face=&quot;&quot;</code>，所用字体添加在双引号中；</p>
</li>
<li><p>修改字号，使用</p>
<figure class="highlight abnf"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs abnf"><span class="hljs-attribute">size</span><span class="hljs-operator">=</span><span class="hljs-string">&quot;&quot;</span><br></code></pre></td></tr></table></figure>

<p>，所用字体添加在双引号中；</p>
<ul>
<li>size可能值为0~7，浏览器默认字号为3</li>
</ul>
</li>
<li><p>修改颜色，使用</p>
<figure class="highlight abnf"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs abnf"><span class="hljs-attribute">color</span><span class="hljs-operator">=</span><span class="hljs-string">&quot;&quot;</span><br></code></pre></td></tr></table></figure>

<p>，所用字体添加在双引号中；</p>
<ul>
<li>颜色可以用英文、十六进制表示</li>
</ul>
</li>
</ol>
<p>示例：</p>
<figure class="highlight html"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></td><td class="code"><pre><code class="hljs HTML"><span class="hljs-tag">&lt;<span class="hljs-name">font</span> <span class="hljs-attr">face</span>=<span class="hljs-string">&quot;Adobe Garamond&quot;</span>&gt;</span>text here<span class="hljs-tag">&lt;/<span class="hljs-name">font</span>&gt;</span><br><span class="hljs-tag">&lt;<span class="hljs-name">font</span> <span class="hljs-attr">face</span>=<span class="hljs-string">&quot;黑体&quot;</span> <span class="hljs-attr">size</span>=<span class="hljs-string">&quot;5&quot;</span>&gt;</span>text here<span class="hljs-tag">&lt;/<span class="hljs-name">font</span>&gt;</span><br><span class="hljs-tag">&lt;<span class="hljs-name">font</span> <span class="hljs-attr">face</span>=<span class="hljs-string">&quot;黑体&quot;</span> <span class="hljs-attr">size</span>=<span class="hljs-string">&quot;2&quot;</span> <span class="hljs-attr">color</span>=<span class="hljs-string">&quot;blue&quot;</span>&gt;</span>text here<span class="hljs-tag">&lt;/<span class="hljs-name">font</span>&gt;</span><br><span class="hljs-tag">&lt;<span class="hljs-name">font</span> <span class="hljs-attr">face</span>=<span class="hljs-string">&quot;Adele&quot;</span> <span class="hljs-attr">size</span>=<span class="hljs-string">&quot;7&quot;</span> <span class="hljs-attr">color</span>=<span class="hljs-string">&quot;#DCDCDC&quot;</span>&gt;</span>text here<span class="hljs-tag">&lt;/<span class="hljs-name">font</span>&gt;</span><br></code></pre></td></tr></table></figure>

<p>效果：<br>text here<br>text here<br>text here<br>text here</p>
<h3 id="修改图片大小和位置"><a href="#修改图片大小和位置" class="headerlink" title="修改图片大小和位置"></a>修改图片大小和位置</h3><hr>
<p><strong>实现该功能用的符号：</strong></p>
<table>
<thead>
<tr>
<th align="center">符号</th>
<th align="center">注释</th>
<th align="center">功能</th>
</tr>
</thead>
<tbody><tr>
<td align="center">width</td>
<td align="center">宽度</td>
<td align="center">定义图片宽度</td>
</tr>
<tr>
<td align="center">height</td>
<td align="center">高度</td>
<td align="center">定义图片高度</td>
</tr>
<tr>
<td align="center">align</td>
<td align="center">align：对齐</td>
<td align="center">定义元素对齐方式</td>
</tr>
<tr>
<td align="center">div</td>
<td align="center">division：划分</td>
<td align="center">修改划分元素（这里指图片）的属性</td>
</tr>
<tr>
<td align="center">img src&#x3D;””</td>
<td align="center">image source</td>
<td align="center">设置图片地址</td>
</tr>
</tbody></table>
<p><strong>书写要点</strong>：</p>
<ol>
<li>图片插入语法使用<code>&lt;img src=&quot;&quot;&gt;</code>，在双引号中添加图片链接；<br>如：<code>&lt;img src=&quot;https://img2023.cnblogs.com/blog/3258107/202311/3258107-20231107210109373-1183604037.jpg&quot;&gt;</code></li>
<li>在图片链接后添加定义图片大小的语句，语句之间用空格连接；<br><code>&lt;img src=&quot;&quot; width=&quot;&quot; height=&quot;&quot;&gt;</code></li>
<li>图片的宽度和高度可以用百分比或像素定义；<br><code>&lt;img src=&quot;&quot; width=&quot;50%&quot; height=&quot;50%&quot;&gt;</code><br><code>&lt;img src=&quot;&quot; width=&quot;250&quot; height=&quot;250&quot;&gt;</code></li>
<li>定义图片位置的语句写在父元素<code>&lt;div&gt;&lt;/div&gt;</code>的起始元素<code>&lt;div&gt;</code>中。<br><code>&lt;div align=&quot;&quot;&gt;&lt;img src=&quot;&quot; width=&quot;&quot; height=&quot;&quot;&gt;&lt;/div&gt;</code></li>
</ol>
<p>示例：</p>
<figure class="highlight html"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><code class="hljs HTML"><span class="hljs-tag">&lt;<span class="hljs-name">div</span> <span class="hljs-attr">align</span>=<span class="hljs-string">&quot;center&quot;</span>&gt;</span><span class="hljs-tag">&lt;<span class="hljs-name">img</span> <span class="hljs-attr">src</span>=<span class="hljs-string">&quot;https://img2023.cnblogs.com/blog/3258107/202311/3258107-20231107210109373-1183604037.jpg&quot;</span> <span class="hljs-attr">width</span>=<span class="hljs-string">&quot;30%&quot;</span> <span class="hljs-attr">height</span>=<span class="hljs-string">&quot;30%&quot;</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span><br> <br><span class="hljs-tag">&lt;<span class="hljs-name">div</span> <span class="hljs-attr">align</span>=<span class="hljs-string">&quot;center&quot;</span>&gt;</span><span class="hljs-tag">&lt;<span class="hljs-name">img</span> <span class="hljs-attr">src</span>=<span class="hljs-string">&quot;https://img2023.cnblogs.com/blog/3258107/202311/3258107-20231107210109373-1183604037.jpg&quot;</span> <span class="hljs-attr">width</span>=<span class="hljs-string">&quot;170&quot;</span> <span class="hljs-attr">height</span>=<span class="hljs-string">&quot;170&quot;</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span><br></code></pre></td></tr></table></figure>

<p>效果：</p>
<img src="https://img2023.cnblogs.com/blog/3258107/202311/3258107-20231107210109373-1183604037.jpg" srcset="/yyds/img/loading.gif" lazyload alt="img" style="zoom:33%;" />

<img src="https://img2023.cnblogs.com/blog/3258107/202311/3258107-20231107210109373-1183604037.jpg" srcset="/yyds/img/loading.gif" lazyload alt="img" style="zoom:33%;" />

<h3 id="引用类型链接"><a href="#引用类型链接" class="headerlink" title="引用类型链接"></a>引用类型链接</h3><hr>
<blockquote>
<p>引用类型链接使URL在Markdown中更易于显示、阅读和管理。其相当于将行内链接拆分成两部分，并通过标签来连接。<br>个人认为引用类型链接和<code>[text](URL)</code>的区别不大，但在有大量URL时，更好管理。</p>
</blockquote>
<p>引用类型链接分为两部分：</p>
<ul>
<li>与文本保持内联的部分</li>
<li>存储在文件中其他位置的部分（一般是末尾）</li>
</ul>
<p><strong>链接的第一部分格式<code>[显示文本][label]</code></strong><br>书写：</p>
<ol>
<li>该部分使用两组方括号，方括号之间没有空格；</li>
<li>第一组方括号内放置链接显示文本；</li>
<li>第二组方括号内放置显示的标签，该标签是指向存储在文档其他位置的链接，可以包括数字、字母、空格或标点符号。</li>
</ol>
<p><strong>链接的第二部分格式<code>[label]: &lt;URL&gt; &quot;tittle</code>“</strong><br>书写：</p>
<ol>
<li>第一个方括号（用于链接的标签）后，紧跟一个冒号和至少一个空格，如：<code>[label]: </code>；</li>
<li>将链接的网址URL扩在尖括号中；</li>
<li>将连接的可选标题扩在双引号中，标题和URL之间以空格连接。</li>
</ol>
<p>注意：</p>
<ul>
<li>考虑到不同版本Markdown程序的兼容性，URL中间的空格使用<code>%20</code>代替。</li>
<li>可以将链接的第二部分放在文档中的任何位置，比如在文档末尾作为尾注或脚注</li>
</ul>
<p>示例：</p>
<figure class="highlight html"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><code class="hljs HTML">作家的命运是很奇特的。开头往往是[巴洛克式][1]，爱虚荣的巴洛克式，多年后，如果吉星高照，他有可能达到的不是简练（简练算不了什么），而是谦逊而隐蔽的复杂性。<br> <br>[1]: &lt;https://zhuanlan.zhihu.com/p/63298524&gt; &quot;巴洛克式是什么风格？&quot;<br></code></pre></td></tr></table></figure>

<p>效果：<br>作家的命运是很奇特的。开头往往是<a target="_blank" rel="noopener" href="https://zhuanlan.zhihu.com/p/63298524">巴洛克式</a>，爱虚荣的巴洛克式，多年后，如果吉星高照，他有可能达到的不是简练（简练算不了什么），而是谦逊而隐蔽的复杂性。</p>
<h3 id="脚注"><a href="#脚注" class="headerlink" title="脚注"></a>脚注</h3><hr>
<blockquote>
<p>脚注使我们可以添加注释和参考，而不使正文混乱。<br>与引用类链接相比，主要用于文档内部的跳转。读者可以单击脚注链接跳至页面底部的脚注，多用于添加注释内容。</p>
</blockquote>
<p>脚注分为两部分：</p>
<ul>
<li>文本内联部分</li>
<li>脚注部分</li>
</ul>
<p><strong>文本内联部分的书写方式：<code>[^label]</code></strong></p>
<ol>
<li>使用方括号和插入符号<code>[^]</code>创建脚注，在插入符号<code>^</code>后添加标识符；</li>
<li>标识符可以是数字或字母，但不能包含空格和制表符；</li>
<li>脚注要按顺序标号。</li>
</ol>
<p>示例：</p>
<figure class="highlight html"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs HTML">Here`s a simple footnote[^1], and here is the longer one.[^bignote]<br></code></pre></td></tr></table></figure>

<p><strong>脚注部分的书写方式：<code>[^label]: text here</code></strong></p>
<ol>
<li>将上一部分带有标识符的脚注放至文档末尾（或任意位置）；</li>
<li>在脚注后紧跟冒号和空格，再添加注释文本。</li>
</ol>
<ul>
<li>脚注可以添加到文档任意位置，列表、块引用和表格等元素除外。</li>
</ul>
<p>示例：</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><code class="hljs dotnetcli">佩特说过，一切艺术都具有音乐的属性。<br>[^1]: Walter Horatio Pater(1839-1894)，英国评论家、散文家，倡导一种精美的散文题材，对唯美主义有较大影响。<br>[^2]: 出自[阿根廷]豪尔赫·路易斯·博尔赫斯《另一个、同一个》 <br></code></pre></td></tr></table></figure>

<p>效果：<br>佩特[<a target="_blank" rel="noopener" href="https://www.cnblogs.com/poem357/p/17816004.html#fn1">1]</a>说过，一切艺术都具有音乐的属性。[<a target="_blank" rel="noopener" href="https://www.cnblogs.com/poem357/p/17816004.html#fn2">2]</a></p>
<h3 id="定义列表"><a href="#定义列表" class="headerlink" title="定义列表"></a>定义列表</h3><hr>
<p>一些Markdown处理器允许创建术语及其对应定义的定义列表。要创建定义列表，需在第一行上键入术语。在下一行，键入一个冒号，后跟一个空格和定义。</p>
<ul>
<li><p>First Term</p>
<p>This is the definition of the first term.</p>
</li>
<li><p>Second Term</p>
<p>This is one definition of the second term.</p>
<p>This is another definition of the second term.</p>
</li>
</ul>
<h3 id="任务列表"><a href="#任务列表" class="headerlink" title="任务列表"></a>任务列表</h3><hr>
<p>创建带复选框的任务列表，需在任务列表前添加破折号<code>-</code>和方括号<code>[]</code>，并在两者之间和方括号内添加空格(<code> [ ]</code>)。若要选择复选框，需在方括号内添加x(<code>[x]</code>)。</p>
<p>示例：</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></td><td class="code"><pre><code class="hljs dotnetcli">- [ ] 在地球上花费不多<br>- [ ] 梦境不收入场费<br>- [x] 幻想只有在破灭时才须代价 <br> <br></code></pre></td></tr></table></figure>

<p>效果：</p>
<ul>
<li>在地球上花费不多</li>
<li>梦境不收入场费</li>
<li>幻想只有在破灭时才须代价</li>
</ul>
<h3 id="使用emoji表情"><a href="#使用emoji表情" class="headerlink" title="使用emoji表情"></a>使用emoji表情</h3><hr>
<ol>
<li>将表情复制粘贴到Markdown格式的文本中<ul>
<li><a target="_blank" rel="noopener" href="https://cn.piliapp.com/emoji/cheat-sheet/">推荐网址: Emoji Cheat Sheet</a></li>
<li><a target="_blank" rel="noopener" href="https://www.emojiall.com/zh-hans">推荐网址: EMOJIALL</a></li>
</ul>
</li>
<li>键入表情符号简码 emoji shortcode</li>
<li>推荐插件：Markdowntools</li>
</ol>
<p>示例：</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><code class="hljs dotnetcli">去露营了！:tent:<br>开心开心！:joy:<br></code></pre></td></tr></table></figure>

<p>效果：<br>去露营了！⛺<br>开心开心！😂</p>

                
              </div>
            
            <hr/>
            <div>
              <div class="post-metas my-3">
  
    <div class="post-meta mr-3 d-flex align-items-center">
      <i class="iconfont icon-category"></i>
      

<span class="category-chains">
  
  
    
      <span class="category-chain">
        
  <a href="/yyds/categories/Markdown/" class="category-chain-item">Markdown</a>
  
  

      </span>
    
  
</span>

    </div>
  
  
    <div class="post-meta">
      <i class="iconfont icon-tags"></i>
      
        <a href="/yyds/tags/Markdown/" class="print-no-link">#Markdown</a>
      
        <a href="/yyds/tags/Typora/" class="print-no-link">#Typora</a>
      
    </div>
  
</div>


              
  

  <div class="license-box my-3">
    <div class="license-title">
      <div>20240430</div>
      <div>https://jiefav.gitee.io/yyds/2024/04/24/20240430/</div>
    </div>
    <div class="license-meta">
      
        <div class="license-meta-item">
          <div>作者</div>
          <div>弶森</div>
        </div>
      
      
        <div class="license-meta-item license-meta-date">
          <div>发布于</div>
          <div>2024年4月24日</div>
        </div>
      
      
      
        <div class="license-meta-item">
          <div>许可协议</div>
          <div>
            
              
              
                <a class="print-no-link" target="_blank" href="https://creativecommons.org/licenses/by/4.0/">
                  <span class="hint--top hint--rounded" aria-label="BY - 署名">
                    <i class="iconfont icon-by"></i>
                  </span>
                </a>
              
            
          </div>
        </div>
      
    </div>
    <div class="license-icon iconfont"></div>
  </div>



              
                <div class="post-prevnext my-3">
                  <article class="post-prev col-6">
                    
                    
                      <a href="/yyds/2024/04/24/20240501/" title="基于gitee+hexo搭建个人博客">
                        <i class="iconfont icon-arrowleft"></i>
                        <span class="hidden-mobile">基于gitee+hexo搭建个人博客</span>
                        <span class="visible-mobile">上一篇</span>
                      </a>
                    
                  </article>
                  <article class="post-next col-6">
                    
                    
                      <a href="/yyds/2024/04/24/20240429/" title="美团产品表">
                        <span class="hidden-mobile">美团产品表</span>
                        <span class="visible-mobile">下一篇</span>
                        <i class="iconfont icon-arrowright"></i>
                      </a>
                    
                  </article>
                </div>
              
            </div>

            
          </article>
        </div>
      </div>
    </div>

    <div class="side-col d-none d-lg-block col-lg-2">
      
  <aside class="sidebar" style="margin-left: -1rem">
    <div id="toc">
  <p class="toc-header">
    <i class="iconfont icon-list"></i>
    <span>目录</span>
  </p>
  <div class="toc-body" id="toc-body"></div>
</div>



  </aside>


    </div>
  </div>
</div>





  



  



  



  



  







    

    
      <a id="scroll-top-button" aria-label="TOP" href="#" role="button">
        <i class="iconfont icon-arrowup" aria-hidden="true"></i>
      </a>
    

    
      <div class="modal fade" id="modalSearch" tabindex="-1" role="dialog" aria-labelledby="ModalLabel"
     aria-hidden="true">
  <div class="modal-dialog modal-dialog-scrollable modal-lg" role="document">
    <div class="modal-content">
      <div class="modal-header text-center">
        <h4 class="modal-title w-100 font-weight-bold">搜索</h4>
        <button type="button" id="local-search-close" class="close" data-dismiss="modal" aria-label="Close">
          <span aria-hidden="true">&times;</span>
        </button>
      </div>
      <div class="modal-body mx-3">
        <div class="md-form mb-5">
          <input type="text" id="local-search-input" class="form-control validate">
          <label data-error="x" data-success="v" for="local-search-input">关键词</label>
        </div>
        <div class="list-group" id="local-search-result"></div>
      </div>
    </div>
  </div>
</div>

    

    
  </main>

  <footer>
    
<div class="footer-inner">
  
    <div class="footer-content">
       <a href="https://jiefav.gitee.io/yyds" target="_blank" rel="nofollow noopener"><span>jiefav</span></a> <i class="iconfont icon-love"></i> <a href="https://jiefav.gitee.io/yyds" target="_blank" rel="nofollow noopener"><span>游颜色</span></a> 
    </div>
  
  
  
  
</div>













<footer class="text-center mt-5 py-3">
  <div class="footer-content">
<div>
  <span id="timeDate">载入天数...</span>
  <span id="times">载入时分秒...</span>
  <script>
  var now = new Date();
  function createtime(){
      var grt= new Date("04/28/2024 00:00:00");//此处修改你的建站时间或者网站上线时间
      now.setTime(now.getTime()+250);
      days = (now - grt ) / 1000 / 60 / 60 / 24;
      dnum = Math.floor(days);
      hours = (now - grt ) / 1000 / 60 / 60 - (24 * dnum);
      hnum = Math.floor(hours);
      if(String(hnum).length ==1 ){
          hnum = "0" + hnum;
      }
      minutes = (now - grt ) / 1000 /60 - (24 * 60 * dnum) - (60 * hnum);
      mnum = Math.floor(minutes);
      if(String(mnum).length ==1 ){
                mnum = "0" + mnum;
      }
      seconds = (now - grt ) / 1000 - (24 * 60 * 60 * dnum) - (60 * 60 * hnum) - (60 * mnum);
      snum = Math.round(seconds);
      if(String(snum).length ==1 ){
                snum = "0" + snum;
      }
      document.getElementById("timeDate").innerHTML = "🚀 for&nbsp"+dnum+"&nbspdays";  //此次自定义显示内容
      document.getElementById("times").innerHTML = hnum + "&nbsphr&nbsp" + mnum + "&nbspmin&nbsp" + snum + "&nbspsec";
  }  //此次自定义显示内容
  setInterval("createtime()",250);
  </script>
</div>




<!-- 不蒜子统计 -->
<script async src="//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script>
<span >本站总访问量：
<span id="busuanzi_value_site_pv"></span>次</span>





<div class="text-center py-1">   
  <div>
    <span>Copyright © 2024</span></a>
    <a href="https://jiefav.gitee.io/yyds/" target="_blank" rel="nofollow noopener">
     <span>jiefav--QQ:8698305</span></a>    <br>
  </div>




  </footer>

  <!-- Scripts -->
  
  <script  src="https://lib.baomitu.com/nprogress/0.2.0/nprogress.min.js" ></script>
  <link  rel="stylesheet" href="https://lib.baomitu.com/nprogress/0.2.0/nprogress.min.css" />

  <script>
    NProgress.configure({"showSpinner":false,"trickleSpeed":100})
    NProgress.start()
    window.addEventListener('load', function() {
      NProgress.done();
    })
  </script>


<script  src="https://lib.baomitu.com/jquery/3.6.4/jquery.min.js" ></script>
<script  src="https://lib.baomitu.com/twitter-bootstrap/4.6.1/js/bootstrap.min.js" ></script>
<script  src="/yyds/js/events.js" ></script>
<script  src="/yyds/js/plugins.js" ></script>


  <script  src="https://lib.baomitu.com/typed.js/2.0.12/typed.min.js" ></script>
  <script>
    (function (window, document) {
      var typing = Fluid.plugins.typing;
      var subtitle = document.getElementById('subtitle');
      if (!subtitle || !typing) {
        return;
      }
      var text = subtitle.getAttribute('data-typed-text');
      
        typing(text);
      
    })(window, document);
  </script>




  
    <script  src="/yyds/js/img-lazyload.js" ></script>
  




  
<script>
  Fluid.utils.createScript('https://lib.baomitu.com/tocbot/4.20.1/tocbot.min.js', function() {
    var toc = jQuery('#toc');
    if (toc.length === 0 || !window.tocbot) { return; }
    var boardCtn = jQuery('#board-ctn');
    var boardTop = boardCtn.offset().top;

    window.tocbot.init(Object.assign({
      tocSelector     : '#toc-body',
      contentSelector : '.markdown-body',
      linkClass       : 'tocbot-link',
      activeLinkClass : 'tocbot-active-link',
      listClass       : 'tocbot-list',
      isCollapsedClass: 'tocbot-is-collapsed',
      collapsibleClass: 'tocbot-is-collapsible',
      scrollSmooth    : true,
      includeTitleTags: true,
      headingsOffset  : -boardTop,
    }, CONFIG.toc));
    if (toc.find('.toc-list-item').length > 0) {
      toc.css('visibility', 'visible');
    }

    Fluid.events.registerRefreshCallback(function() {
      if ('tocbot' in window) {
        tocbot.refresh();
        var toc = jQuery('#toc');
        if (toc.length === 0 || !tocbot) {
          return;
        }
        if (toc.find('.toc-list-item').length > 0) {
          toc.css('visibility', 'visible');
        }
      }
    });
  });
</script>


  <script src=https://lib.baomitu.com/clipboard.js/2.0.11/clipboard.min.js></script>

  <script>Fluid.plugins.codeWidget();</script>


  
<script>
  Fluid.utils.createScript('https://lib.baomitu.com/anchor-js/4.3.1/anchor.min.js', function() {
    window.anchors.options = {
      placement: CONFIG.anchorjs.placement,
      visible  : CONFIG.anchorjs.visible
    };
    if (CONFIG.anchorjs.icon) {
      window.anchors.options.icon = CONFIG.anchorjs.icon;
    }
    var el = (CONFIG.anchorjs.element || 'h1,h2,h3,h4,h5,h6').split(',');
    var res = [];
    for (var item of el) {
      res.push('.markdown-body > ' + item.trim());
    }
    if (CONFIG.anchorjs.placement === 'left') {
      window.anchors.options.class = 'anchorjs-link-left';
    }
    window.anchors.add(res.join(', '));

    Fluid.events.registerRefreshCallback(function() {
      if ('anchors' in window) {
        anchors.removeAll();
        var el = (CONFIG.anchorjs.element || 'h1,h2,h3,h4,h5,h6').split(',');
        var res = [];
        for (var item of el) {
          res.push('.markdown-body > ' + item.trim());
        }
        if (CONFIG.anchorjs.placement === 'left') {
          anchors.options.class = 'anchorjs-link-left';
        }
        anchors.add(res.join(', '));
      }
    });
  });
</script>


  
<script>
  Fluid.utils.createScript('https://lib.baomitu.com/fancybox/3.5.7/jquery.fancybox.min.js', function() {
    Fluid.plugins.fancyBox();
  });
</script>


  <script>Fluid.plugins.imageCaption();</script>

  <script  src="/yyds/js/local-search.js" ></script>





<!-- 主题的启动项，将它保持在最底部 -->
<!-- the boot of the theme, keep it at the bottom -->
<script  src="/yyds/js/boot.js" ></script>


  

  <noscript>
    <div class="noscript-warning">博客在允许 JavaScript 运行的环境下浏览效果更佳</div>
  </noscript>
</body>
</html>
